import { Config } from './Config'
import { Cell } from '../types'
import { State } from '../enum'

export class Map{
	array: Array<Array<Cell>>

	config: Config
	constructor(config: Config){
		this.config = config
		
		this.array = []
		for(let i = 0; i < config.rows; i++){
			this.array.push([])
			for(let j = 0; j < config.cols; j++){
				let cell: Cell = {state: State.Empty, code: Infinity}
				this.array[i].push(cell)
			}
		}
	}
}